{% extends "base.html" %}

{% block stylesheets %}
{% endblock %}

{% block content %}
    <div class="section section-standard" id="teams">
	<div class="section-inner">
	    <div class="container">
	        <div class="section-header" data-100p-top="transform[swing]:translateY(-25px);opacity[swing]:0" data-75p-top="transform[swing]:translateY(0);opacity[swing]:1">
	            <h3>Create Teams</h3>
	            <div class="divider">//</div>
	        </div>
		    <div class="row">
			<div class="col-md-6 offset-md-3">
				{% for error in errors %}
					<div class="alert alert-danger alert-dismissable" role="alert">
						<span class="sr-only">Error:</span>
						{{ error }}
						<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
								aria-hidden="true">×</span></button>
					</div>
				{% endfor %}
				<form method="POST">
					<div class="form-group">
						<label>Team Name:</label>
						<input class="form-control" type="text" name="name">
					</div>
					<div class="form-group">
						<label>Team Password:</label>
						<input class="form-control" type="password" name="password">
					</div>
					<input type="hidden" name="nonce" value="{{ nonce }}">
					<div class="row pt-3">
						<div class="col-md-12">
							<p>After creating your team, share the team name and password with your teammates so they can join your team.</p>
							<button type="submit" id="submit" class="btn btn-success float-right">
								Create
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
        </div>
	</div>
    </div>
{% endblock %}

{% block scripts %}
{% endblock %}
